package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.Api;
import lombok.Data;

@Data
@Api("商品bean")
@TableName("t_product")
public class ProductBean {
    @TableId("pk_productId")
    private long productId;
    @TableField("productName")
    private String productName;
    /**
     * 采购价格
     */
    @TableField("purchasePrice")
    private long purchasePrice;
    /**
     * 建议零售价
     */
    @TableField("salePrice")
    private long salePrice;
    @TableField("factory")
    private String factory;
    @TableField("productType")
    private String productType;
    @TableField("imgPath")
    private String imgPath;
    /**
     * 商品数量
     */
    @TableField("productNum")
    private int productNum;

    public ProductBean() {
    }

    public ProductBean(String productName, long purchasePrice, long salePrice, String factory, String productType, String imgPath, int productNum) {
        this.productName = productName;
        this.purchasePrice = purchasePrice;
        this.salePrice = salePrice;
        this.factory = factory;
        this.productType = productType;
        this.imgPath = imgPath;
        this.productNum = productNum;
    }
}
